# -*- coding: utf-8 -*-
import wx
from widget.wgtEventID import *

class MenuBarDemo(wx.MenuBar):
    def __init__(self):
        wx.MenuBar.__init__(self, 0)
        self.Append(MenuSysDemo(), u'系统')
        self.Append(MenuAboutDemo(), u'关于')


class MenuSysDemo(wx.Menu):
    def __init__(self):
        wx.Menu.__init__(self)
        self.Append(ID_RUNSERVER, u'运行服务')
        self.AppendSeparator()
        self.Append(ID_EXIT, u'退出', 'Exit Programme')


class MenuAboutDemo(wx.Menu):
    def __init__(self):
        wx.Menu.__init__(self)
        self.Append(ID_ABOUT, u'关于')


class PopupMenuDemo(wx.Menu):
    def __init__(self):
        wx.Menu.__init__(self)
        menu = wx.Menu()
        self.Append(ID_SET, u"设置")
        self.Append(ID_ABOUT, u"关于")
        self.AppendSeparator()
        self.Append(ID_EXIT, u"退出")
        menu.Destroy()
